window.setTimeout(function(){location.href=location.href},60000);
(function(){
	if(!document.getElementById("related")){
		return;
	}
	var oimg = document.createElement("img");
	oimg.src="http://img.tongji.cn.yahoo.com/907364/ystat.gif";
	document.body.appendChild(oimg);
	var searchKey = encodeURIComponent(location.href.substring(location.href.indexOf("?")+1,(location.href.indexOf("&x=")==-1)?2000:location.href.indexOf("&x=")));
	var olds = window.globalStorage["piao.kuxun.cn"].searchKey;
	if(!olds){
		olds="";
	}else{
		olds = olds.toString();
	}
	var havenew = false;
	var yellow = false;
	var piaos = [];	
	var piaosCon = document.getElementById("related").previousSibling.previousSibling;
	if(piaosCon.getElementsByTagName("H5").length!=0){
	}else{
		for(var i=0;i<piaosCon.childNodes.length;i++){
			if(piaosCon.childNodes[i].nodeType==1&&piaosCon.childNodes[i].tagName.toLowerCase()=="div"){
				if(piaosCon.childNodes[i].className=="back"||piaosCon.childNodes[i].className=="back pz"){
					var oDiv = piaosCon.childNodes[i];
					try{
						var piaoKey = oDiv.getElementsByTagName("LI")[0].getElementsByTagName("A")[0].href;
					}catch(err){
						continue;
					}
					if(piaoKey.substr(piaoKey.lastIndexOf("?")).length > 10){
						piaoKey = piaoKey.substr(piaoKey.lastIndexOf("?")+1);
					}else{
						piaoKey = piaoKey.substr(piaoKey.indexOf("?")+1);
					}
					piaoKey = encodeURIComponent(piaoKey);
					if(olds.indexOf(","+piaoKey)>-1){
					}else{
						olds = olds+","+piaoKey;
						if(yellow){
							oDiv.style.backgroundColor="#FFFF99";
							yellow = false;
						}else{
							oDiv.style.backgroundColor="#FFCC99";
							yellow = true;
						}
						havenew = true;
					}
				}
			}
		}	
	}
	if(havenew){
		var sTitle = document.getElementById("fti").value+"-"+document.getElementById("qti").value;
		try{
			var winNewTicket = window.open("about:blank","_"+searchKey,"width=468,height=100,toolbar=no,location=yes,directories=no,status=yes,resizable=yes,scrollbars=no");
			//winNewTicket.document.write("<html><head><title>"+sTitle+"  New Ticket!</title></head><body style=\"background-color:#E8D8E2;margin:0px\"><div style=\"width=468px;height=100px;\"><embed width=\"468\" height=\"100\" flashvars=\"bannerWidth=468&bannerHeight=100&bannerSID=http://img.alimama.cn/x/2009-01-05/2009-01-05_090105153444009.xml&bannerLink=&title=&content=&website="+sTitle+"\" wmode=\"transparent\" quality=\"high\" name=\"110163\" id=\"110163\" style=\"\" src=\"http://img.alimama.cn/images/ibanner/bc_cpc.swf\" type=\"application/x-shockwave-flash\"></embed></div></body></html>");
			winNewTicket.document.write("<html><head><title>"+sTitle+"  New Ticket!</title></head><body style=\"background-color:#E8D8E2;margin:0px\"><div style=\"width=468px;height=100px;\">"+sTitle+"</div></body></html>");
			winNewTicket.document.close();
		}catch(err){
			alert(decodeURIComponent("%E8%AF%B7%E7%82%B9%E5%87%BB%E7%AA%97%E5%8F%A3%E4%B8%8A%E6%96%B9%2C%E8%AE%BE%E7%BD%AE%E5%85%81%E8%AE%B8piao.kuxun.cn%E5%BC%B9%E5%87%BA%E7%AA%97%E5%8F%A3%2C%E4%BB%A5%E4%BE%BF%E5%9C%A8%E5%88%B7%E5%88%B0%E6%96%B0%E7%81%AB%E8%BD%A6%E7%A5%A8%E5%90%8E%E5%BE%97%E5%88%B0%E6%98%8E%E6%98%BE%E7%9A%84%E6%8F%90%E7%A4%BA!"));
		}
		window.globalStorage["piao.kuxun.cn"].searchKey = olds;
	}else{
		//window.globalStorage["piao.kuxun.cn"].searchKey = "";
	}
})();

if(document.getElementById("suggest")){
	document.getElementById("suggest").innerHTML = '<a href="http://cam.taoke.alimama.com/event.php?pid=mm_10003521_0_0&eventid=100202" target="_blank"><img style="height:750px;width:200px" src="http://img.alimama.cn/topicfile/2009-01-08/123138279511216.jpg"></a>';
}
if(document.getElementById("google_ads_div_piao_result_top_bannar_pic")){
	document.getElementById("google_ads_div_piao_result_top_bannar_pic").innerHTML='<a href="http://cam.taoke.alimama.com/event.php?pid=mm_10003521_0_0&eventid=100185" target="_blank"><img src="http://img.alimama.cn/topicfile/2008-12-18/12295653842870.gif"></a>';
}
if(document.getElementById("google_ads_div_piao_result_right_pole_pic")){
	//document.getElementById("google_ads_div_piao_result_right_pole_pic").innerHTML='<a href="http://cam.taoke.alimama.com/event.php?pid=mm_10003521_0_0&eventid=100185" target="_blank"><img style="height:750px;width:200px" src="http://img.alimama.cn/topicfile/2008-12-18/122956538428716.gif"></a>';
}
